import Vue from 'vue'
import Router from 'vue-router'

//引入路由
import itemBank from "../view/itemBank.vue"
import submit from "../view/submit.vue"
import personal from "../view/personal.vue"
import itemBankid from "../view/itemBankid.vue"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      redirect:'/personal'
    },
    {
      path:'/personal',
      component:personal
    },
    {
      path:'/itemBank',
      component:itemBank,
      children:[
        {
          path:'/itemBank/:id',
          component:itemBankid
        }
      ]
    },
    {
      path:"/submit",
      component:submit
    }
  ]
})